<template>
	<div v-if="isLogin">
		<Paersonal></Paersonal>
	</div>
	<!-- 登录页 -->
	<div class="login" v-else>
		<LoginHeader></LoginHeader>
		<LoginMain></LoginMain>
	</div>
	<!-- 登录页结束 -->
</template>
<script setup>
import { ref } from "vue"
import { useRouter } from "vue-router"

import LoginHeader from "../components/LoginHeader.vue"
import LoginMain from "../components/LoginMain.vue"
import Paersonal from "../pages/Personal.vue"

import { checkLogin } from "../services/index"
const isLogin = checkLogin()

console.log(isLogin);


// const result = ref('')

// const getMyToken = (res) => {
// 	res = localStorage.getItem('token')

// 	result.value = res
// 	console.log(result.value);
// }
</script>
<style scoped>
.login {
	height: 100vh;
	background-color: #eee;
}
</style>
